package com.fangzc.springboot.demo.common.schedule;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * Copyright (C) 2014-2016 天津紫藤科技有限公司. Co. Ltd. All Rights Reserved.
 *
 * @author fangzc
 * @version v1
 * @description 定时任务
 * @date 2019-5-28
 */
@Component
@EnableScheduling
public class ScheduleDemo {

    private static final Logger LOGGER = LoggerFactory.getLogger(ScheduleDemo.class);


    @Scheduled(cron = "0/5 * * * * ?")//每五秒扫描一次
    public void smsSchedule() throws Exception {
    }

}
